package com.yurun.mapper;

import com.yurun.entity.Business;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BusinessMapper {
    // === insert business ===
    int addBusiness(Business business);

    // === delete business ===
    int deleteBusinessById(Long id);

    // === update business ===
    int updateBusiness(Business business);

    // === select business ===
    List<Business> getBusinessList();

    List<Business> getBusinessListByCategoryId(Integer bcategoryId);

    Business getBusinessByName(String name);

}
